package com.lijiajia.cloud.authserver.security.oauth.user;

import org.springframework.security.oauth2.core.oidc.OidcUserInfo;

import java.util.Map;

/**
 * github 用户信息转换器
 *
 * @author lijiajia
 * @since 2019-05-22
 */
public class GithubUserInfoConverter implements UserInfoConverter {

    @Override
    public OidcUserInfo convert(Map<String, Object> userAttributes) {
        return new GithubUserInfo(userAttributes);
    }
}
